package top.huntwolf.admin.pojo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class Address {

    private Integer addressId;

    @NotNull(message = "open_id cannot be null")
    private String openId;

    private String name;

    private String phone;

    private String dormitory;

    private String detailed;

    private boolean primary;

    @JsonIgnore
    private boolean isDelete;


}
